package com.lsh.oms.core.dao.other;

import com.lsh.oms.core.dao.MyBatisRepository;
import com.lsh.oms.core.model.order.OrderRoDetail;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author peter
 */
@MyBatisRepository
public interface OrderRoDetailMapper {

    int deleteByPrimaryKey(Long id);

//    int insert(OrderRoDetail record);

    int insertSelective(OrderRoDetail record);

    OrderRoDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderRoDetail record);

//    int updateByPrimaryKey(OrderRoDetail record);

    int updateByTmsId(OrderRoDetail record);

    List<OrderRoDetail> getOrderRoDetailList(@Param("paramMap") HashMap<String,Object> paramMap);

    List<OrderRoDetail> findDetailList(@Param("return_order_ids") Collection<Long> returnOrderIds);

    List<Map<String, Object>> findReturnOrderItemsById(@Param("return_order_id") Long returnOrderId);
}